home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
CUJ9104.ARJ
/
9N04039B
< prev
next >
Wrap
Text File
|
1991-02-06
|
516b
|
24 lines
EVENT_MSG event; /* allocate space for an event message
*/
draw_screen(); /* put up your window */
for(;;)
{
/* receive the message from QNX Windows */
GetEvent(0, &event, sizeof(EVENT_MSG));
/* extract the message type, and act appropriately */
switch(Event(&event))
{
case CLICK: /* somebody clicked the mouse */
do_something();
continue;
case QUIT: /* the user wants to quit */
case TERMINATED: /* the server is being shut down */
shutdown();
exit(0);
}
}